﻿namespace DbFrame.Core.CodeAnalysis
{
    //
    using DbFrame.BaseClass;
    using System.Linq.Expressions;

    /// <summary>
    /// 
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class QueryAnalysis<T>
    {

        public void Create(SQL _Sql)
        {
            var _TableInfo = DbTable.GetTable(typeof(T));
            var _TableName = DbSettings.KeywordHandle(_TableInfo.Item1);

            //var _Alias = DbSettings.KeywordHandle(_TableName);

            //_Sql.Alias[_Alias] = _TableName;//记录用到的表名 与 别名

            _Sql.Code_Column.Clear().Append("*");//记录列

            _Sql.Code_FromTab.AppendFormat(_TableName);//select * from Member with(nolock)


        }

    }
}
